package mse.eai.jbpm.sendFriendshipRequest;

import org.jboss.logging.Logger;
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class PrintRequest implements ActionHandler {

	private static final Logger log = Logger.getLogger(PrintRequest.class);

	@Override
	public void execute(ExecutionContext context) throws Exception {

		log.info("Executing ---------->");

		int fromId = (Integer) context.getVariable("origUserId");
		int toId = (Integer) context.getVariable("destUserId");

		log.info("USER: " + fromId + " WANTS TO BE FRIEND WITH " + toId);

		log.info("<--------------- Done");

		context.leaveNode();

	}

}
